import App from './App'
import {
	createSSRApp
} from 'vue'
import i18n from './locale/lang.js'
// import {createI18n} from 'vue-i18n'

import * as Pinia from 'pinia' // main.js 
import uviewPlus from 'uview-plus'
// import setupI18n from './locale/index'
export function createApp() {
	const app = createSSRApp(App)
	app.use(i18n)
	app.use(Pinia.createPinia())
	app.use(uviewPlus)
	// setupI18n(app)
	return {
		app,
		Pinia
	}
}